{include file="header.tpl" title="Chi tiet deptlist "}
<form action="" method="post" name ="tongquat" target="_self">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3">
<input type="button" value="{$ten_trove}" onclick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'">
</td>
<td align="right" nowrap="nowrap">
<select name="hanhdong" size="1" onchange="changevalue('hanhdong');">
   {foreach from=$chuyentrang key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/>
</td>
</tr>
<tr>
<td colspan="4">
<hr>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td nowrap="nowrap" width="25%">{$lbl_BRNCODE}</td>
    <td colspan="3" align="left"><select name="BRNCODE">
      
		 {foreach from=$BRNCODE key=k item=v}
	  	
      <option value="{$k}" {if $k eq $activebrncode} selected="selected" {/if} >{$v}</option>
      
	  {/foreach}
    
    </select></td>
  </tr>
  <tr>
    <td height="26">{$lbl_DEPTCD}</td>
    <td colspan="2" style="color:#FF0000"><input name="DEPTCD" id="DEPTCD" type="text" style="background:{$colorDEPTCD}" value="{$DEPTCD}" size="20" maxlength="2" />
      *
      <input type="submit" name="find" value="    " id="replacement_find" /></td>
	   <td>&nbsp;</td>
    <td nowrap="nowrap">&nbsp;</td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_DEPTNAME}</td>
    <td colspan="2"><span style="color:#FF0000">
      <input name="DEPTNAME" id="DEPTNAME" type="text" style="background:{$colorDEPTNAME}" value="{$DEPTNAME}" size="50" maxlength="50" readonly="readonly"/>
      *</span></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_REMARKS}</td>
    <td colspan="2"><input name="REMARKS" id="REMARKS" type="text" style="background:{$colorREMARKS}" value="{$REMARKS}" size="50" maxlength="50" readonly="readonly" /></td>
    <td nowrap="nowrap">&nbsp;</td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_MANAGER_CODE}</td>
    <td><span style="color:#FF0000">
      <input name="MANAGER_CODE" id="MANAGER_CODE" type="text" style="background:{$colorMANAGER_CODE}" value="{$MANAGER_CODE}" size="20" maxlength="10" readonly="readonly" />
      <input name="MANAGER_NAME" id="MANAGER_NAME" type="text" style="background:{$colorMANAGER_NAME}" value="{$MANAGER_NAME}" size="31" maxlength="50" readonly="readonly" />
    </span></td>
    <td>&nbsp;</td>
    <td nowrap="nowrap">&nbsp;</td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_OPENDATE}</td>
    <td><span style="color:#FF0000">
      <input name="OPENDATE" type="text" id="OPENDATE" style="background:{$colorOPENDATE}" onfocus="this.select();lcs(this)" onclick="event.cancelBubble=true;this.select();lcs(this)" value="{$OPENDATE}" size="25" readonly="readonly" />
    </span></td>
    <td>&nbsp;</td>
    <td nowrap="nowrap">&nbsp;</td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_LICENC}</td>
    <td><input name="LICENCE" id="LICENCE" type="hidden" style="background:{$colorLICENCE}" value="{$LICENCE}" size="50" maxlength="50" readonly="readonly" /></td>
    <td>&nbsp;</td>
    <td nowrap="nowrap">&nbsp;</td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_VCSEQNO}</td>
    <td><input name="VCSEQNO" id="VCSEQNO" type="text" style="background:{$colorVCSEQNO}" value="{$VCSEQNO}" size="20" maxlength="7" onkeypress="return numberOnly(event);" onchange="allowOnlyFloatingPointNumbers(this,this.value);" class="textright" readonly="readonly"/></td>
    <td>&nbsp;</td>
    <td nowrap="nowrap">&nbsp;</td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_COSTID}</td>
    <td><input name="COSTID" id="COSTID" type="text" style="background:{$colorCOSTID}" value="{$COSTID}" size="20" maxlength="10" readonly="readonly" />
        <input type="hidden" onclick="mywindow = window.open('costid_id.php?name=COSTID', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findcostid" id="replacement_binoculars" value="     " /></td>
    <td>&nbsp;</td>
    <td nowrap="nowrap">&nbsp;</td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_ENABLED}</td>
    <td><select name="ENABLED" disabled="disabled">
      <option value=""></option>
      
      
		 {foreach from=$ENABLED key=k item=v} 	 
      
      
      <option value="{$k}" {if $k eq $activeENABLED} selected="selected" {/if} >{$k} - {$v}</option>
      
      
	  {/foreach} 
    
    
    </select></td>
    <td>&nbsp;</td>
    <td nowrap="nowrap">&nbsp;</td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_DEPCRD}</td>
    <td><input name="DEPCRD" id="DEPCRD" type="text" style="background:{$colorDEPCRD}" value="{$DEPCRD}" size="20" maxlength="10" onkeyup="this.value=this.value.toUpperCase().replace(' ','')" readonly="readonly" /></td>
    <td>&nbsp;</td>
    <td nowrap="nowrap">&nbsp;</td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_SUBBRNCODE}</td>
    <td><input name="SUBBRNCODE" id="SUBBRNCODE" type="text" style="background:{$colorSUBBRNCODE}" value="{$SUBBRNCODE}" size="20" maxlength="2" onkeyup="this.value=this.value.toUpperCase().replace(' ','')" readonly="readonly" /></td>
    <td>{$lbl_TCD}</td>
    <td nowrap="nowrap"><select name="TCD" id="TCD" disabled="disabled">
      <option value=""></option>
            
		 {foreach from=$cbo_TCD key=k item=v}      
      
      <option value="{$k}" {if $k eq $TCD} selected="selected" {/if} >{$k} - {$v}</option>
            
	  {/foreach}    
    
    </select></td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_CTRID}</td>
    <td><input name="CTRID" id="CTRID" type="text" style="background:{$colorCTRID}" value="{$CTRID}" size="20" maxlength="3"  onkeyup="this.value=this.value.toUpperCase().replace(' ','')" readonly="readonly" /></td>
    <td>{$lbl_STATUS}</td>
    <td nowrap="nowrap"><select name="STATUS" id="STATUS" disabled="disabled">
      <option value=""></option>
		 {foreach from=$cbo_STATUS item=v} 	 
      
      <option value="{$v}" {if $v eq $STATUS} selected="selected" {/if} >{$v}</option>
      
	  {/foreach} 
    
    </select></td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_ADDRESS}</td>
    <td><input name="ADDRESS" id="ADDRESS" type="text" style="background:{$colorADDRESS}" value="{$ADDRESS}" size="50" maxlength="50" readonly="readonly" /></td>
	<td>{$lbl_STATUSVO}</td>
	<td><select name="STATUSVO" id="STATUSVO" disabled="disabled">
	  
        
      
     {foreach from=$cbo_STATUSVO item=v} 	 
     
      
        
	  <option value="{$v}" {if $v eq $STATUSVO} selected="selected" {/if} >{$v}</option>
	  
        
      
     {/foreach} 

    
      
	  </select>	</td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_PHONE}</td>
    <td><input name="PHONE" type="text" id="PHONE" style="text-align:left;" onkeypress="return numberOnly(event);" value="{$PHONE}" size="20" maxlength="50" readonly="readonly"/></td>
	<td>{$lbl_FAX}</td>
	<td><input name="FAX" id="FAX" type="text" style="background:{$colorFAX}" value="{$FAX}" size="20" maxlength="50" onkeypress="return numberOnly(event);"  readonly="readonly"/></td>
	<td>&nbsp;</td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_CSHACT}</td>
    <td><input name="CSHACT" id="CSHACT" type="text" style="background:{$colorCSHACT}" value="{$CSHACT}" size="20" maxlength="10" readonly="readonly" />
      <span style="color:#FF0000">*</span>
      <input type="hidden" onclick="mywindow = window.open('microbank_id.php?name=CSHACT', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findlaisuat2" id="replacement_binoculars" value="     " /></td>
    <td>&nbsp;</td>
    <td nowrap="nowrap">&nbsp;</td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_CSHACT_X}</td>
    <td><input name="CSHACT_X" type="text" id="CSHACT_X" style="text-align:left;" value="{$CSHACT_X}" size="20" maxlength="10" readonly="readonly"/></td>
    <td>&nbsp;</td>
    <td nowrap="nowrap">&nbsp;</td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_CSHACT_Z}</td>
    <td><input name="CSHACT_Z" type="text" id="CSHACT_Z" style="text-align:left;" value="{$CSHACT_Z}" size="20" maxlength="10" readonly="readonly"/></td>
    <td>&nbsp;</td>
    <td nowrap="nowrap">&nbsp;</td>
  </tr>
  <tr>
    <!--
  <tr>
    <td>{$lbl_COTSO}</td>
    <td colspan="3"><input name="COTSO" id="COTSO" type="text" readonly="readOnly" value="{$COTSO}" size="20" maxlength="20" class="textright"/></td>
  </tr>
  -->
  </tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
  <td align="left" nowrap="nowrap" colspan="2"><input name="addnew" type="submit" value="{$ten_themmoi}" class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
      <input name="maintain" type="submit" value="{$ten_baotri}" class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" /></td>
</tr>
<tr>
<td colspan="2"><hr></td>
</tr>
<tr>
<td>
<input type="button" value="{$ten_trove}" onclick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'">

</td>
<td align="right" nowrap="nowrap"> 
<select name="hanhdong1" size="1" onchange="changevalue('hanhdong1');">
   {foreach from=$chuyentrang key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'">
</td>
</tr>
</table>
</form>
{include file="footer.tpl"}
